<%@page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>

</head>
<body>
<h2>show tasks for story</h2>
<c:if test="${empty story}">No story found with this id.</c:if>
<table>
    <tr>
        <td>Story :</td>
        <td><c:out value="${story.name}"/></td>
    </tr>
    <tr>
        <td>Description:</td>
        <td><c:out value="${story.description}"/></td>
    </tr>
</table>
<c:if test="${not empty story}">
    <table>
        <c:forEach items="${story.tasks}" var="task">
            <tr>
                <td>${task.description}</td>
                <td>${task.estimatedHours}</td>
                <td>${task.actualHours}</td>
            </tr>
        </c:forEach>
    </table>
</c:if>
</body>
</html>
